package com.ruoyi.project.module.groupProperty.domain;

import com.ruoyi.project.module.group.domain.Group;
import com.ruoyi.project.module.propertyConstraint.domain.PropertyConstraint;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 配置组属性表 config_group_property
 * 
 * @author ruoyi
 * @date 2018-11-10
 */
public class GroupProperty extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 配置属性ID */
	private Long configGroupPropertyId;
	/** 配置组ID */
	private Long configGroupId;
	/** 属性名 */
	private String propKey;
	/** 属性值 */
	private String propValue;
	/** 属性约束 */
	private Integer propConstraint;
	/** 描述 */
	private String description;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;
	/** 备注 */
	private String remark;

	private Integer orderNum;

	private Long parentId;

	/** 祖级列表 */
	private String ancestors;

	private Boolean pushUpdate;
	//删除标识
	private Integer deleteFlag;

	private PropertyConstraint propertyConstraint;

	private Group group;




	public PropertyConstraint getPropertyConstraint() {
		return propertyConstraint;
	}

	public void setPropertyConstraint(PropertyConstraint propertyConstraint) {
		this.propertyConstraint = propertyConstraint;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public void setConfigGroupPropertyId(Long configGroupPropertyId)
	{
		this.configGroupPropertyId = configGroupPropertyId;
	}

	public Long getConfigGroupPropertyId() 
	{
		return configGroupPropertyId;
	}
	public void setConfigGroupId(Long configGroupId) 
	{
		this.configGroupId = configGroupId;
	}

	public Long getConfigGroupId() 
	{
		return configGroupId;
	}
	public void setPropKey(String propKey) 
	{
		this.propKey = propKey;
	}

	public String getPropKey() 
	{
		return propKey;
	}
	public void setPropValue(String propValue) 
	{
		this.propValue = propValue;
	}

	public String getPropValue() 
	{
		return propValue;
	}
	public void setPropConstraint(Integer propConstraint)
	{
		this.propConstraint = propConstraint;
	}

	public Integer getPropConstraint()
	{
		return propConstraint;
	}
	public void setDescription(String description) 
	{
		this.description = description;
	}

	public String getDescription() 
	{
		return description;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

	public String getAncestors() {
		return ancestors;
	}

	public void setAncestors(String ancestors) {
		this.ancestors = ancestors;
	}

	@Override
	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("configGroupPropertyId", getConfigGroupPropertyId())
            .append("configGroupId", getConfigGroupId())
            .append("propKey", getPropKey())
            .append("propValue", getPropValue())
            .append("propConstraint", getPropConstraint())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("parentId",getParentId())
            .append("orderNum",getOrderNum())
            .append("ancestors",getAncestors())
            .toString();
    }

	public Boolean getPushUpdate() {
		return pushUpdate;
	}

	public void setPushUpdate(Boolean pushUpdate) {
		this.pushUpdate = pushUpdate;
	}

	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}
}
